﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Shcool.Models;

namespace MVC3AppCodeFirst.Controllers
{
    public class HomeController : Controller
    {

        private UserContext db = new UserContext ( );

        public ActionResult Index ( )
        {
            using ( var db = new UserContext ( ) )
            {
                return View ( db.Scores.ToList ( ) );
            }

        }
        public ActionResult About ( )
        {
            return View ( );
        }

        public ActionResult Navigation ( )
        {
            using ( var db = new UserContext ( ) )
            {
                return View ( db.Courses.ToList ( ) );
            }

        }

        public ActionResult CourseMenu ( )
        {
            return View ( );
        }

        public ActionResult Student ( )
        {
            return View ( );
        }


    }
}
